mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-02 04:53:27 +00:00
fix(export): fix SQL server field.nullable type to boolean (#486)
* fix(export): fix SQL server field.nullable type to boolean * fix build * fix build
This commit is contained in:
@@ -20,7 +20,7 @@ const compat = new FlatCompat({
|
||||
|
||||
export default [
|
||||
{
|
||||
ignores: ['**/dist', '**/.eslintrc.cjs', 'tailwind.config.js'],
|
||||
ignores: ['**/dist', '**/.eslintrc.cjs', '**/tailwind.config.js'],
|
||||
// files: ['**/*.ts', '**/*.tsx'],
|
||||
},
|
||||
...fixupConfigRules(
|
||||
|
||||
@@ -134,6 +134,20 @@ export const StorageProvider: React.FC<React.PropsWithChildren> = ({
|
||||
config: '++id, defaultDiagramId',
|
||||
});
|
||||
|
||||
db.version(9).upgrade((tx) =>
|
||||
tx
|
||||
.table<DBTable & { diagramId: string }>('db_tables')
|
||||
.toCollection()
|
||||
.modify((table) => {
|
||||
for (const field of table.fields) {
|
||||
if (typeof field.nullable === 'string') {
|
||||
field.nullable =
|
||||
(field.nullable as string).toLowerCase() === 'true';
|
||||
}
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
db.on('ready', async () => {
|
||||
const config = await getConfig();
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const defaultTheme = require('tailwindcss/defaultTheme');
|
||||
import defaultTheme from 'tailwindcss/defaultTheme';
|
||||
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user