Tables are not being generated

Wwarflash5/3/2023
Hey 👋 I'm probably missing something obvious but with the setup I have (shown in the image) drizzle doesnt seem to apply the things inside the migration folder. It does generate the drizzle schema in the db + the __drizzle_migrations table so something is running for sure, but it doesnt seem to pick up on the migrations I did. Appreciate the help!
ASAndrii Sherman5/4/2023
could you please open meta/_journal? and show what is inside
Wwarflash5/4/2023
sure!
Wwarflash5/4/2023
ooh it seems like the migrationsfolder path needs to be from the project root instead of relative to where it's being called from
ASAndrii Sherman5/4/2023
yeah, that's true

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Inserting records into related tablesI have a few of tables that are related. I just need to know if there's a better approach when inserinArrayFor what i've seen pass an empty array to inArray is not supported, how to you handle this cases? usInvalid default value when using defaultNow()Receiving error: ```js Invalid default value for 'updated_at' (errno 1067) (sqlstate 42000) (CallerTypesafe floats ?I'm trying to create a column called "weight". It needs to have values like "33.33" as floats. I'm TS Errors in Custom Type citext exampleI want to include citext data type in my postgres schemas. I was delighted to see there's a completeDoes Drizzle support MySQL's LAST_INSERT_ID function?I'm wanting to return a newly created record in the db immediately after a POST. MySQL doesn't suppCheck for empty string in postgresHi. First post. 🙂 Started looking into migrating our project to drizzle today and am loving it so fHow do I set a column to be unique in drizzle syntax for mySQL?Would something like this be correct? ```js export const authUsers = mysqlTable( 'auth_users',How to use JSON field in queryI've already made an issue on GitHub kind of pertaining to this issue, but I don't know if its actuaMySQL, PG proxy driver@Andrii Sherman Hi, Andrew! I noticed that the April milestone for drizzle-orm includes MySQL and PHow to create tables?So my understanding is that running a "migration" means creating the table with the schema in your donUpdateNow usageis onUpdateNow simlar to prisma's @updatedAt ? I.e., updated_at col is auto-updated. If so, is there