[SOLVED] How to add new table?


#1

I’m trying to figure out how to implement new table into spryker, but documentation.spryker.com only has docs on implementing Admin grid.
What’s the best place to figure out how to add new database table to spryker?

there’s something here:
https://documentation.spryker.com/zed/persistence_layer/database_schema_definition.htm?Highlight=schema%20definition

but when I add my schema, it DOES land within src/Orm/Propel/DE/Schema/ is prefixed with spy_ but vendor/bin/console propel:schema:validate doesn’t return anything and vendor/bin/console propel:install doesn’t create the table.

What else is missing?


#3

turns out the problem was really with some other module. Running following commands allowed me to create the table with propel install without an issue:

rm -rf src/Orm/Propel/DE/Migration_pgsql/*
rm -rf src/Orm/Propel/US/Migration_pgsql/*
rm -rf src/Orm/Propel/DE/Schema/*
rm -rf src/Orm/Propel/US/Schema/*
rm -rf src/Orm/Propel/DE/Sql/*
rm -rf src/Orm/Propel/US/Sql/*